﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SPMS.Common;

namespace SPMS.Web.Models
{
    [ModelBinder(typeof(ExtendedModelBinder))]
    public class ActiveOperationFiles
    {
        /// <summary>
        /// 获取或设置文件ID
        /// </summary>
        /// <value>
        /// 获取或设置文件ID
        /// </value>
        public Guid File_ID { get; set; }
        /// <summary>
        /// 操作id
        /// </summary>
        /// <value>
        /// 操作id
        /// </value>
        public Guid Operation_ID { get; set; }

        /// <summary>
        /// 文件类型id
        /// </summary>
        public Guid FileType_ID { get; set; }
      
        /// <summary>
        /// IsDelayedDelivery
        /// </summary>
        /// <value>
        /// IsDelayedDelivery
        /// </value>
        public int IsDelayedDelivery { get; set; }
        /// <summary>
        /// 日期
        /// </summary>
        /// <value>
        /// 日期
        /// </value>
        public DateTime DueDate { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        /// <value>
        /// 备注
        /// </value>
        public string Memo { get; set; }

        /// <summary>
        /// 获得或者设置封装形式图片。
        /// </summary>
        /// <value>
        /// 封装信息图片。
        /// </value>
        [JsonBinder]
        public UploadFileModel[] Files
        {
            get;
            set;
        }
    }
}